<?php 

class Menu extends CWidget{

	public function init(){}

    public function run(){

    	/* Lógica del menu */
    	if( Yii::app()->user->isGuest )
    		echo Yii::app()->user->guestName;
    	else
    		echo Yii::app()->user->username . ' - ' . Yii::app()->user->loginTime;
    	
        $this->render( 'menu' );
    }

}